package cn.xy.base.server.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 表[sys_admin]对应UpdateDTO类
 *
 * @author auto
 */

@Data
public class PasswordUpdateDTO {

    /**
     * 旧密码
     */
    @NotEmpty(message = "旧密码不能为空")
    @ApiModelProperty(value = "旧密码", dataType = "String")
    private String oldPassword;

    /**
     * 新密码
     */
    @NotEmpty(message = "新密码不能为空")
    @ApiModelProperty(value = "新密码", dataType = "String")
    private String password;

}
